part of http;

class DioUtils {
  DioUtils._();
  static Dio? _instance;
  static CancelToken? cancelToken;

  static Dio? getInstance() {
    if (_instance == null) {
      _instance = Dio();
      _instance!.interceptors.add(HeaderInterceptor());
      _instance!.interceptors.add(ErrorInterceptor());
    }
    return _instance;
  }
}
